<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui" template="../template.xhtml">

	<ui:define name="head"></ui:define>
	<ui:define name="right">

		<div class="section">
			<div class="section-title">#{msgs.mensagens}</div>
			<div class="section-content">
				<p:growl id="messages" showDetail="false" />
			</div>
		</div>
	</ui:define>
	<ui:define name="content">
		<div class="section">
			<div class="section-title">#{msgs.detalhes_solicitacao}</div>

			<div class="section-content">

				<h3>
					#{msgs.numero_solicitacao}
					<h:outputLabel value="#{solicitacaoMB.solicitacao.cod}" />
				</h3>
				<h:panelGrid columns="4">
					<h:outputLabel styleClass="bold" value="#{msgs.entidade_alterada}: " />
					<h:outputText value="#{solicitacaoMB.getNomePessoaAlterada(solicitacaoMB.solicitacao)}" />
					<h:outputLabel styleClass="bold" value="#{msgs.data}: " />
					<h:outputText value="#{solicitacaoMB.solicitacao.dataSolicitacao}">
						<f:convertDateTime pattern="dd/MM/yyyy" />
					</h:outputText>
					<h:outputLabel styleClass="bold" value="#{msgs.situacao}: " />
					<h:outputText value="Aguardando Entrega de Documentos" />
					<h:form id="imprimirFicha" target="_blank">
					<p:commandButton actionListener="#{solicitacaoMB.gerarFichaSolicitacao}" value="#{msgs.imprimir_ficha}" ajax="false" >
						<p:fileDownload value="#{solicitacaoMB.fichaSolicitacao}" contentDisposition="inline" />
					</p:commandButton>
					</h:form>
				</h:panelGrid>


				<div class="content-separator"></div>
				<h3>#{msgs.itens_solicitacao}</h3>
				<h:form>
					<p:dataList value="#{solicitacaoMB.solicitacao.solicitacaoItems}" var="item">						
							<b>#{msgs.item_numero} #{item.cod}</b> 	#{item}.
					</p:dataList>

				</h:form>
				<div class="content-separator"></div>
				<div class="clearer"></div>
			</div>
		</div>

	</ui:define>

</ui:composition>